package com.zhongshan.ga.mybatis.dao;

import java.util.ArrayList;
import java.util.Map;

import org.apache.ibatis.annotations.Select;

import com.zhongshan.ga.mybatis.bean.PostcardInfo;

/**
 * 明信片数据访问接口
 * @author yanqi
 *
 */
public interface IPostcardInfoDao {
	/**
	 * 按条件查询明信片信息
	 * @param postcardInfoMap 指定查询的条数及开始下标
	 * @return ArrayList<PostcardInfo> 列表
	 */
	@Select("SELECT * FROM postcardinfo where isActivity = 1 ORDER BY postcardOrderNum LIMIT #{startIndex},#{endIndex}")
	public ArrayList<PostcardInfo> getPostcardInfoList(Map<String, Integer> postcardInfoMap);
}
